package com.BlogPark.service.EditArticleService.Impl;

import com.BlogPark.mapper.ArticleMapper;
import com.BlogPark.pojo.Article;
import com.BlogPark.service.EditArticleService.EditArticleService;
import com.BlogPark.service.ManagerService.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: MFM
 * @Date: 2022/8/10 - 08 - 10 - 21:46
 * @version: 1.0
 */

@Service
public class EditArticleServiceImpl implements EditArticleService {

    @Autowired
    private ManagerService managerService;

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public boolean publishArticle(Article article) {
        //直接发送给审核
        return false;
    }

    @Override
    public Article readArticle(String articleId) {
        return articleMapper.selectById(articleId);
    }
}
